package com.example.ruiji.service;

import com.example.ruiji.common.Result;
import com.example.ruiji.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    Result<AddressBook> save(AddressBook addressBook);

    Result<AddressBook> setDefault(AddressBook addressBook);

    Result<AddressBook> getById(Long id);

    Result<AddressBook> getDefault();

    Result<List<AddressBook>> list(AddressBook addressBook);

}
